package vip.kqsy.cloud.ai.sdk.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class CreateChatReq extends BaseReq<CreateChatRes> {

    public static final String MODEL_3_5_TURBO = "gpt-3.5-turbo";

    private String model = MODEL_3_5_TURBO;
    private List<Message> messages;


    @Override
    public Class<CreateChatRes> classType() {
        return CreateChatRes.class;
    }

    @Override
    public String url() {
        return "https://api.openai.com/v1/chat/completions";
    }

    @Override
    public String method() {
        return POST;
    }
}
